package com.woniu.cq.medical.service;

import com.woniu.cq.medical.controller.form.PrescriptionForm;
import com.woniu.cq.medical.controller.form.PrescriptionInfoForm;
import com.woniu.cq.medical.controller.form.ProjectForm;
import com.woniu.cq.medical.controller.form.RegisterAllForm;
import com.woniu.cq.medical.entity.Prescription;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-08
 */
public interface PrescriptionService extends IService<Prescription> {
    /**
     * 新增一条处方
     * 返回自增长的主键值
     * @param prescriptionData
     */
    public Integer insertPrescription(List<PrescriptionForm> prescriptionData);

    List<PrescriptionInfoForm> selectProduct(String patientIdCard);

    List<ProjectForm> selectProject(String patientIdCard);

    List<PrescriptionInfoForm> selectProductAll(String patientIdCard);

    List<ProjectForm> selectProjectAll(String patientIdCard);

    List<RegisterAllForm> selectRegister(String patientIdCard);
}
